﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Entities;
using SocialFront.Providers.Relationship;

namespace SocialFront.Web.usercontrols.Membership
{
    public partial class ListBlogsILikeByMember : System.Web.UI.UserControl
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            IList<Member> members = RelationshipProvider.Provider.GetMemberRelatedToCurrentNode();
            IList<Entities.Blog> blogs = RelationshipProvider.Provider.GetBlogsILikeByMember(members[0].Id);
            blogsList.DataSource = blogs.Take(6);
            blogsList.DataBind();
        }
    }
}